]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionSystem: Set the proper 'enabled' and 'type' parameters
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 1 Dec 2011 03:02:09 +0000 (22:02 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 1 Dec 2011 03:04:00 +0000 (22:04 -0500)
When installing an extension at runtime, we accidentally swapped the 'type'
and 'enabled' parameters. While this doesn't directly affect anything right
now, as everything works coincidentally, future patches that look at the
'type' parameter to decide what to do would get the wrong answer.

js/ui/extensionSystem.js

index a0302fe02b1c1284898e4ebe0c0a695faaba041b..9aadb3afdbb495378c2d527da79c26ae9900da56 100644 (file)
@@ -202,7 +202,7 @@ function gotExtensionZipFile(session, message, uuid) {
             global.settings.set_strv(ENABLED_EXTENSIONS_KEY, enabledExtensions);
         }
 
-        loadExtension(dir, true, ExtensionType.PER_USER);
+        loadExtension(dir, ExtensionType.PER_USER, true);
     });
 }